#ifndef INET_DEMUX_TABLE_H
#define INET_DEMUX_TABLE_H

#include "EventHandler.h"
#include "EventTypes.h"

#include <sys/select.h>
#include <iostream>

class DemuxTable
{
 public:
  void convert( fd_set &read, fd_set &write, fd_set &excep);

  struct Tuple
  {
    EventHandler * eventHandler;
    EventType eventType;
  };

  Tuple table_[FD_SETSIZE-1];
};

#endif
